package com.cdp.common.core.domain.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.cdp.common.core.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.Date;

/**
 * 文件审核中间表
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("sys_file_audit")
public class SysFileAudit extends BaseEntity {

    // 审核ID
    @TableField("audit_id")
    private Integer auditId;

    // 目标表名称
    @TableField("table_name")
    private Integer tableName;

    // 文件存储路径
    @TableField("file_path")
    private String filePath;

    // 审核状态 (0: 待审核, 1: 审核通过, 2: 审核未通过)
    @TableField("status")
    private Integer status;



    // 唯一标识
    @TableField("id")
    private String id;

    // 版本号
    @TableField("version")
    private Integer version;

    // 软删除时间
    @TableField("delete_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date deleteTime;

}
